<template>
	<view class="content">
		<view v-for="(item,index) in image" :key="index">
			<image :src="item" mode="aspectFill" style="width: 100vw;" @click="dianji"></image>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			image: []
		};
	},
	onShow() {
		
	},
	onLoad(e) {
		this.image = e.image.split(',')
		console.log('this.image  :>> ', this.image );
		
		
	},
	methods: {
		dianji(){
			uni.previewImage({
				urls:this.image,
				longPressActions: {
					
					success: function(data) {
						console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
					},
					fail: function(err) {
						console.log(err.errMsg);
					}
				}
			});
		}
	},
	
};
</script>

<style lang="scss" scoped>
.content {
	width: 100vw;
	height: 100vh;
	overflow: scroll;
}
</style>
